package top.suven.base.core.jetty;

import org.apache.commons.beanutils.PropertyUtils;

public class  HttpServerPort{
        private int user = 9010;
        private int oauth  = 9020;
        private int resource  = 9030;
        private int pay  = 9040;
        private int assets  = 9050;
        private int pad  = 9060;
        private int order  = 9070;
        private int activity  = 9080;
        private int desktop  = 9090;
        private int config  = 9100;
        private int market  = 9140;
        private int mq = 9120;

    public static  int getPort(String key) {
        int port = 0;
        try{
            port = (Integer)PropertyUtils.getProperty(new HttpServerPort(), key);
        }catch (Exception e){ }
        return port;
    }

        public int getActivity() {
            return activity;
        }

        public void setActivity(int activity) {
            this.activity = activity;
        }

        public int getAssets() {
            return assets;
        }

        public void setAssets(int assets) {
            this.assets = assets;
        }

        public int getConfig() {
            return config;
        }

        public void setConfig(int config) {
            this.config = config;
        }

        public int getDesktop() {
            return desktop;
        }

        public void setDesktop(int desktop) {
            this.desktop = desktop;
        }

        public int getMarket() {
            return market;
        }

        public void setMarket(int market) {
            this.market = market;
        }

        public int getOauth() {
            return oauth;
        }

        public void setOauth(int oauth) {
            this.oauth = oauth;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public int getPad() {
            return pad;
        }

        public void setPad(int pad) {
            this.pad = pad;
        }

        public int getPay() {
            return pay;
        }

        public void setPay(int pay) {
            this.pay = pay;
        }

        public int getResource() {
            return resource;
        }

        public void setResource(int resource) {
            this.resource = resource;
        }

        public int getUser() {
            return user;
        }

        public void setUser(int user) {
            this.user = user;
        }

        public int getMq() {
            return mq;
        }

        public void setMq(int mq) {
            this.mq = mq;
        }
    }